I can add items to my dropdown list using javascript like this:
cbo.length = j+2;
cbo.options[j].text = "Some Text";
cbo.options[j].value = "MyValue";
cbo.options[j+1].text = "Some Other Text";
cbo.options[j+1].value = "MyOtherValue";
But the above code adds them to the bottom of the list.
My question is how can add them back at a specific index in the list?
(I have a list of 10 items but remove two if they click an option button. If
they click back to the original value of the option group I want to add the
2 values back to the list. But in the right place.)
Any ideas?
--
Joe Fallon